diff options
| author | Adam Soltys <[email protected]> | 2022-09-30 15:52:10 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-30 15:52:27 -0700 |
| commit | 96c0813ed426126425413f4c12fe7edeef90f2fe (patch) | |
| tree | ca8b4e6a04b4b977379f3b147c2eccc23de04fb6 /src/routes/invoice/[id] | |
| parent | 0cbdac628012c80c1c61e796bf1e2750be9afe58 (diff) | |
| download | coinos-ui-96c0813ed426126425413f4c12fe7edeef90f2fe.tar.gz coinos-ui-96c0813ed426126425413f4c12fe7edeef90f2fe.zip | |
sent payment confirmation
Diffstat (limited to 'src/routes/invoice/[id]')
| -rw-r--r-- | src/routes/invoice/[id]/+page.svelte | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/invoice/[id]/+page.svelte b/src/routes/invoice/[id]/+page.svelte index 094f698e..7ff63862 100644 --- a/src/routes/invoice/[id]/+page.svelte +++ b/src/routes/invoice/[id]/+page.svelte @@ -45,7 +45,7 @@ $: tip = Math.round((amount / 100) * tipPercent); $invoices[id] = { amount, id, rate, received, text, tip, username }; - $: $invoices[id]?.received && goto(`/invoice/${id}/paid`); + $: $invoices[id]?.received >= $invoices[id]?.amount && goto(`/invoice/${id}/paid`); $: amountFiat = parseFloat(((amount * rate) / sats).toFixed(2)); |
